<template>
    <BasicModal v-bind="$attrs" @register="registerModal" title="修改记录" width="1000px">
        <BasicTable bordered size="middle" :loading="loading" :canResize="false" :columns="operColumns"
            :dataSource="dataSource" :pagination="false">
        </BasicTable>
    </BasicModal>
</template>
  
<script lang="ts" name="operation-labOperation" setup>
import { ref} from 'vue';
import { BasicTable} from '/@/components/Table';
import { BasicModal, useModalInner } from '/@/components/Modal';
import { operColumns } from './LabEntrust.data';
import { operList } from './LabEntrust.api';


const loading = ref(false);
const dataSource = ref([]);

const [registerModal, { setModalProps}] = useModalInner((data) => {
    setModalProps({
        minHeight: 200,
        showOkBtn:false,
        showCancelBtn:false,
    });
    dataSource.value = [];
    loading.value = true;
    let params = {
        tableId:data.record.id,
    }
    operList(params).then((res) => {
        console.log(res);
        dataSource.value = res.records;
    }).finally(() => {
        loading.value = false
    })
});




</script>
  
<style lang="less" scoped>
.jeecg-basic-table-form-container {
    .table-page-search-submitButtons {
        display: block;
        margin-bottom: 24px;
        white-space: nowrap;
    }

    .query-group-cust {
        width: calc(50% - 15px);
        min-width: 100px !important;
    }

    .query-group-split-cust {
        width: 30px;
        display: inline-block;
        text-align: center
    }
}
</style>
  